/**
 * 连接后台服务
 */
//var baseurl="http://120.27.192.219:8181/scantogo";
var baseurl="http://localhost:8080/";
angular.module('app.service', [
	"ngResource",
	"ngStorage"
])

//设备服务
.service('DeviceService', function($resource){
	var devres = $resource(baseurl+'/device/:id');//
	
	this.getdevicelist = function(){
		return devres.query();
	};
})

//中继服务
.service('BridgeService', function($resource){
	var bridgeres = $resource(baseurl+'/bridge/:id');

	this.getbridgelist = function(){
		return bridgeres.query();
	};
})
//商品服务
	.service('GoodsService', function($resource){
		var goodsres = $resource(baseurl+'/goods/:id');

		this.getbridgelist = function(){
			return goodsres.query();
		};
	})
;
